BattleSort = {}

function BattleSort.calZValue(x, y)
	local z = (y + 10) * 5
	return z
end

function BattleSort.calZValueWithShift(z, effectType)
	local shiftZ = z
	if(effectType == "effect") then
		shiftZ = shiftZ - 2
	elseif(effectType == "spell_fly") then
		shiftZ = shiftZ - 1
	elseif(effectType == "spell_lightning") then
		shiftZ = shiftZ - 1
	end

	return shiftZ
end